package com.accp.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloHandler {
	
	@Value("${server.port}")
    private String port;
	
	@Value("${my.username}")
	private String username;

    @GetMapping("/index2")
    public String index2(){
        return "当前端口是："+this.port + " 用户名: "+ username;
    }

	@GetMapping("/index")
    public String index(){
        return "Hello Worldaaabbbcc";
    }
	
	@GetMapping("/ak")
	public String ak(){
		return "ak";
	}
}
